package com.dzm.manager.config;

import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.redisson.config.Config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 作者：Dzm
 * 时间：2024-09-21-17:08
 * 功能：
 */

@Configuration
public class MyRedissonConfig {

    @Bean
    public RedissonClient redissonClient() {
        Config config = new Config();
        config.useSingleServer().setAddress("redis://xglinux:6379").setPassword("123456");
        return Redisson.create(config);
    }
}
